import request from '@/utils/request'

// 查询薪酬总-计提工资福利列表
export function listJtgzfl(query) {
  return request({
    url: '/basebill/jtgzfl/list',
    method: 'get',
    params: query
  })
}

// 查询薪酬总-计提工资福利详细
export function getJtgzfl(fid) {
  return request({
    url: '/basebill/jtgzfl/' + fid,
    method: 'get'
  })
}

// 新增薪酬总-计提工资福利
export function addJtgzfl(data) {
  return request({
    url: '/basebill/jtgzfl',
    method: 'post',
    data: data
  })
}

// 修改薪酬总-计提工资福利
export function updateJtgzfl(data) {
  return request({
    url: '/basebill/jtgzfl',
    method: 'put',
    data: data
  })
}

// 删除薪酬总-计提工资福利
export function delJtgzfl(fid) {
  return request({
    url: '/basebill/jtgzfl/' + fid,
    method: 'delete'
  })

}
export function operation(fid,fstate){
  return request({
    url:'/basebill/jtgzfl/operation/' + fid+'/'+fstate,
    method:'put'
  })
}
